package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2025-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_rakuten_mark_record_order")
public class RakutenMarkRecordOrderDo extends Model<RakutenMarkRecordOrderDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("request_id")
    private String requestId;

    @TableField("mark_id")
    private Long markId;

    @TableField("order_id")
    private Long orderId;

    @TableField("message")
    private String message;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    public RakutenMarkRecordOrderDo(String requestId, Long orderId) {
        this.requestId = requestId;
        this.orderId = orderId;
    }

    public RakutenMarkRecordOrderDo(Long markId, Long orderId) {
        this.markId = markId;
        this.orderId = orderId;
    }

    public RakutenMarkRecordOrderDo(Long markId, Long orderId, String message) {
        this.markId = markId;
        this.orderId = orderId;
        this.message = message;
    }

    public RakutenMarkRecordOrderDo() {
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
